<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>动态列表 - 社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4263EB;
            --secondary: #FA5252;
            --gray: #6C757D;
            --light-gray: #F8F9FA;
            --border-color: #EEEEEE;
            --card-radius: 12px;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #F5F7FA;
            color: #333;
            padding-top: 56px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .nav-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        .nav-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: none;
            border: none;
            color: #333;
            font-size: 20px;
        }
        
        /* 动态列表容器 */
        .feed-container {
            padding-bottom: 70px;
        }
        
        /* 动态项 */
        .feed-item {
            background-color: white;
            margin-bottom: 12px;
            border-radius: var(--card-radius);
            overflow: hidden;
        }
        
        /* 动态头部 */
        .feed-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .post-time {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .post-menu {
            background: none;
            border: none;
            color: var(--gray);
            font-size: 16px;
        }
        
        /* 转发标识 */
        .repost-tag {
            padding: 6px 16px;
            background-color: var(--light-gray);
            font-size: 13px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* 动态内容 */
        .feed-content {
            padding: 0 16px 12px;
            font-size: 15px;
            line-height: 1.6;
        }
        
        .feed-content p {
            margin-bottom: 8px;
        }
        
        .content-tag {
            color: var(--primary);
            text-decoration: none;
        }
        
        /* 动态图片 */
        .feed-images {
            padding: 0 16px 12px;
        }
        
        .image-grid {
            display: grid;
            gap: 4px;
        }
        
        .image-grid-1 {
            grid-template-columns: 1fr;
        }
        
        .image-grid-2, .image-grid-4 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .image-grid-3, .image-grid-5, .image-grid-6 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .feed-image {
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .image-grid-1 .feed-image {
            height: 220px;
        }
        
        .image-grid-2 .feed-image,
        .image-grid-3 .feed-image,
        .image-grid-4 .feed-image,
        .image-grid-5 .feed-image,
        .image-grid-6 .feed-image {
            height: 110px;
        }
        
        /* 转发内容卡片 */
        .repost-card {
            margin: 0 16px 12px;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background-color: var(--light-gray);
        }
        
        .repost-type {
            font-size: 12px;
            color: var(--gray);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .repost-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 6px;
            line-height: 1.4;
        }
        
        .repost-excerpt {
            font-size: 13px;
            color: var(--gray);
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .repost-meta {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        /* 动态底部操作 */
        .feed-actions {
            display: flex;
            padding: 8px 0;
            border-top: 1px solid var(--border-color);
            margin: 0 16px;
        }
        
        .action-btn {
            flex: 1;
            padding: 6px 0;
            background: none;
            border: none;
            font-size: 14px;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .action-btn:hover, .action-btn.active {
            color: var(--secondary);
        }
        
        /* 底部发布栏 */
        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-top: 1px solid var(--border-color);
            z-index: 900;
        }
        
        .post-input {
            flex: 1;
            background-color: var(--light-gray);
            border-radius: 20px;
            padding: 10px 16px;
            font-size: 14px;
            border: none;
        }
        
        .post-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-btn">
            <i class="fas fa-th-large"></i>
        </button>
        <div class="nav-title">动态</div>
        <button class="nav-btn">
            <i class="fas fa-bell"></i>
        </button>
    </div>
    
    <!-- 动态列表 -->
    <div class="feed-container">
        <!-- 无图动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">张小明</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 今天 08:30
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>新的一天开始了！今天也要元气满满地工作💪 大家早上都吃什么早餐呀？#晨间分享#</p>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 评论
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 转发
                </button>
                <button class="action-btn active">
                    <i class="fas fa-heart"></i> 点赞
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 单图动态 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/65/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">李摄影</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 昨天 19:45
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>傍晚时分的城市天际线，捕捉到了美丽的晚霞 🌇 #城市摄影#</p>
            </div>
            <div class="feed-images">
                <div class="image-grid image-grid-1">
                    <img src="https://picsum.photos/id/1039/600/400" alt="动态图片" class="feed-image">
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 28
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 5
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 132
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 多图动态（3张） -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/66/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">王美食</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 昨天 12:10
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>周末在家尝试做了三道新菜，味道还不错！推荐给大家 <a href="#" class="content-tag">#美食分享#</a></p>
            </div>
            <div class="feed-images">
                <div class="image-grid image-grid-3">
                    <img src="https://picsum.photos/id/292/300/300" alt="动态图片" class="feed-image">
                    <img src="https://picsum.photos/id/431/300/300" alt="动态图片" class="feed-image">
                    <img src="https://picsum.photos/id/488/300/300" alt="动态图片" class="feed-image">
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 42
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 12
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 89
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 转发文章 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/67/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">赵阅读</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 2天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>这篇文章分析得很到位，推荐给对人工智能感兴趣的朋友阅读 🤖</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-file-alt"></i> 文章
                </div>
                <div class="repost-title">
                    人工智能在未来五年的发展趋势与应用场景
                </div>
                <div class="repost-excerpt">
                    随着技术的不断进步，人工智能正从实验室走向实际应用。本文将从技术突破、产业应用、伦理规范三个维度，分析未来五年人工智能的发展方向...
                </div>
                <div class="repost-meta">
                    <span><i class="far fa-eye"></i> 3.2k阅读</span>
                    <span><i class="far fa-comment"></i> 86评论</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 15
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 32
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 64
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 转发相册 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/68/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">孙旅行</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 3天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="repost-tag">
                <i class="fas fa-retweet"></i> 转发自 山水摄影
            </div>
            <div class="feed-content">
                <p>这些风景照片太美了，已经加入我的旅行清单！</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-images"></i> 相册 · 自然风光摄影集
                </div>
                <div class="image-grid image-grid-4">
                    <img src="https://picsum.photos/id/10/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/15/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/28/300/300" alt="相册图片" class="feed-image">
                    <img src="https://picsum.photos/id/42/300/300" alt="相册图片" class="feed-image">
                </div>
                <div class="repost-meta">
                    <span><i class="far fa-images"></i> 共36张照片</span>
                    <span><i class="far fa-heart"></i> 245喜欢</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 8
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 17
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 93
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 转发招聘信息 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/69/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">HR小林</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 4天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="feed-content">
                <p>公司正在招聘前端开发工程师，有兴趣的朋友可以了解一下，待遇优厚，团队氛围好！</p>
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-briefcase"></i> 招聘
                </div>
                <div class="repost-title">
                    高级前端开发工程师 - 创新科技有限公司
                </div>
                <div class="repost-excerpt">
                    职责：负责公司产品前端开发与优化，参与技术方案设计，推动前端工程化建设...
                </div>
                <div class="repost-meta">
                    <span><i class="fas fa-money-bill-wave"></i> 15k-25k</span>
                    <span><i class="fas fa-map-marker-alt"></i> 上海</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 23
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 47
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 36
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
        
        <!-- 转发服务信息 -->
        <div class="feed-item">
            <div class="feed-header">
                <img src="https://picsum.photos/id/70/100/100" alt="用户头像" class="user-avatar">
                <div class="user-info">
                    <div class="user-name">陈推荐</div>
                    <div class="post-time">
                        <i class="far fa-clock"></i> 5天前
                    </div>
                </div>
                <button class="post-menu">
                    <i class="fas fa-ellipsis-h"></i>
                </button>
            </div>
            <div class="repost-tag">
                <i class="fas fa-retweet"></i> 转发自 创意设计工作室
            </div>
            <div class="repost-card">
                <div class="repost-type">
                    <i class="fas fa-concierge-bell"></i> 服务
                </div>
                <div class="feed-images">
                    <div class="image-grid image-grid-1">
                        <img src="https://picsum.photos/id/96/600/400" alt="服务图片" class="feed-image">
                    </div>
                </div>
                <div class="repost-title">
                    专业Logo设计与品牌视觉识别系统服务
                </div>
                <div class="repost-excerpt">
                    10年设计经验团队，提供从Logo设计到全套VI系统的一站式品牌视觉解决方案...
                </div>
                <div class="repost-meta">
                    <span><i class="fas fa-money-bill-wave"></i> ¥1,800起</span>
                    <span><i class="fas fa-star"></i> 4.9分 (126评价)</span>
                </div>
            </div>
            <div class="feed-actions">
                <button class="action-btn">
                    <i class="far fa-comment"></i> 7
                </button>
                <button class="action-btn">
                    <i class="far fa-retweet"></i> 9
                </button>
                <button class="action-btn">
                    <i class="far fa-heart"></i> 28
                </button>
                <button class="action-btn">
                    <i class="far fa-paper-plane"></i> 分享
                </button>
            </div>
        </div>
    </div>
    
    <!-- 底部发布栏 -->
    <div class="bottom-bar">
        <input type="text" class="post-input" placeholder="分享你的想法...">
        <button class="post-btn">
            <i class="fas fa-paper-plane"></i>
        </button>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能
        const likeButtons = document.querySelectorAll('.action-btn:has(.fa-heart)');
        likeButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countEl = this.childNodes[2];
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('active');
                    
                    // 更新数字
                    if (countEl.textContent.trim() === '') {
                        countEl.textContent = ' 1';
                    } else {
                        let count = parseInt(countEl.textContent.trim());
                        countEl.textContent = ` ${count + 1}`;
                    }
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('active');
                    
                    // 更新数字
                    let count = parseInt(countEl.textContent.trim());
                    if (count <= 1) {
                        countEl.textContent = '';
                    } else {
                        countEl.textContent = ` ${count - 1}`;
                    }
                }
            });
        });
        
        // 转发功能
        const repostButtons = document.querySelectorAll('.action-btn:has(.fa-retweet)');
        repostButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const countEl = this.childNodes[2];
                let count = countEl.textContent.trim() ? parseInt(countEl.textContent.trim()) : 0;
                countEl.textContent = ` ${count + 1}`;
                
                // 显示转发成功提示
                const提示 = document.createElement('div');
                提示.textContent = '转发成功';
                提示.style.position = 'fixed';
                提示.style.top = '50%';
                提示.style.left = '50%';
                提示.style.transform = 'translate(-50%, -50%)';
                提示.style.backgroundColor = 'rgba(0,0,0,0.7)';
                提示.style.color = 'white';
                提示.style.padding = '8px 16px';
                提示.style.borderRadius = '4px';
                提示.style.zIndex = '9999';
                document.body.appendChild(提示);
                
                setTimeout(() => {
                    提示.remove();
                }, 1500);
            });
        });
        
        // 评论按钮点击
        const commentButtons = document.querySelectorAll('.action-btn:has(.fa-comment)');
        commentButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const postAuthor = this.closest('.feed-item').querySelector('.user-name').textContent;
                alert(`查看 ${postAuthor} 的动态评论`);
            });
        });
        
        // 分享按钮点击
        const shareButtons = document.querySelectorAll('.action-btn:has(.fa-paper-plane)');
        shareButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                alert('分享选项：微信好友、朋友圈、QQ、复制链接...');
            });
        });
        
        // 发布按钮点击
        document.querySelector('.post-btn').addEventListener('click', function() {
            const input = document.querySelector('.post-input');
            if (input.value.trim()) {
                alert(`发布动态：${input.value}`);
                input.value = '';
            } else {
                alert('请输入内容后再发布');
            }
        });
        
        // 菜单按钮点击
        const menuButtons = document.querySelectorAll('.post-menu');
        menuButtons.forEach(btn => {
            btn.addEventListener('click', function() {
                const postAuthor = this.closest('.feed-item').querySelector('.user-name').textContent;
                alert(`对 ${postAuthor} 的动态进行操作：举报、屏蔽、不看他的动态...`);
            });
        });
    </script>
</body>
</html>
